<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
<link rel="stylesheet" type="text/css" href="http://unpkg.com/iview/dist/styles/iview.css">
<script type="text/javascript" src="./vue.min.js"></script>
<script type="text/javascript" src="http://unpkg.com/iview/dist/iview.min.js"></script>
<!--<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=5NWBZ-CRU32-DIXUO-C5OPM-32NNZ-6RFTM"></script>
<script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js?v=2.exp&key=5NWBZ-CRU32-DIXUO-C5OPM-32NNZ-6RFTM"></script>
  <script src="./gallery.js"></script>
    <script src="./qqmap.js"></script>-->
	    
</head>
<body>
<div id="app">
	<input type="file" accept="image/*" @change="fileChanged" ref="file">
</div>
<script>
  var vm=new Vue({
    el:'#app',
	data:{
		url:'http://www.woyaozhg.com/api/upload'
	},
    components:{
    },
	methods:{
		fileChanged() {
                const list = this.$refs.file.files
				console.log(list);
                debugger;
                this.$refs.file.value = ''
            }
	}
  })
</script>
</body>
</html>